<?php
class StockReportAction extends CommonAction {

		function _filter(&$map){
			$map['title'] = array('like',"%".$_REQUEST['title']."%");
		}
		
		public function view(){
			$id=$_REQUEST['id'];
			$Report=M('StockReport');
			$vo=$Report->find($id);
			$items=json_to_array(json_decode($vo['items']));
			$this->assign('vo',$vo);
			$this->assign('items',$items);
			$this->display();
		}
}
?>